<include file="Public:header" />
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <!-- Panel Other -->
    <div class="ibox float-e-margins">
        <div class="ibox-title"  class="col-md-6">
            <h5>用户列表</h5>
        </div>
        <div class="ibox-content">
            <!--搜索框开始-->
            <form id='commentForm' role="form" method="get" class="form-inline">
                <div class="content clearfix m-b">
                    <div class="form-group">
                        <label>用户名：</label>
                        <input type="text" class="form-control" id="username" name="username" value="{$Think.get.loginName}">
                    </div>
                    <div class="form-group">
                        <button class="btn btn-primary" type="submit" style="margin-top:5px" id="search"><strong>搜 索</strong>
                        </button>
                    </div>
                </div>
            </form>
            <!--搜索框结束-->
            <div class="hr-line-dashed"></div>
				<div class="example-wrap">
					<div class="example">
						<div class="bootstrap-table">
							<div class="fixed-table-container" style="height: 641px; padding-bottom: 36px;">
								<div class="fixed-table-header" style="margin-right: 0px;"></div>
								<div class="fixed-table-body">
									<table id="cusTable" data-height="700" class="table table-hover table-striped">
										<thead>
											<th tabindex="0">
												<div class="th-inner ">用户名</div>
											</th>
											<th tabindex="0">
												<div class="th-inner ">姓名</div>
											</th>
											<th tabindex="0">
												<div class="th-inner ">手机号</div>
											</th>
											<th tabindex="0">
												<div class="th-inner ">推荐人</div>
											</th>
											<th tabindex="0">
												<div class="th-inner ">安置人</div>
											</th>
											<th tabindex="0">
												<div class="th-inner ">区域</div>
											</th>
											<th tabindex="0">
												<div class="th-inner ">总业绩</div>
											</th>
											<th tabindex="0">
												<div class="th-inner ">剩余业绩</div>
											</th>
											<th tabindex="0">
												<div class="th-inner ">会员级别</div>
											</th>
											<!--<th tabindex="0">
												<div class="th-inner ">荣誉级别</div>
											</th>-->
											<th tabindex="0">
												<div class="th-inner ">注册时间</div>
											</th>
											<th tabindex="0">
												<div class="th-inner ">状态</div>
											</th>
											<th tabindex="0">
												<div class="th-inner ">锁定</div>
											</th>
											<th tabindex="0">
												<div class="th-inner ">操作</div>
											</th>
										</thead>
										<tbody>
											<volist name="list['content']" id="vo">
											<tr>
												<td>{$vo['username']}</td>
												<td>{$vo['realname']}</td>
												<td>{$vo['phone']}</td>
												<td>{$vo['tuiuser']['username']}</td>
												<td>{$vo['jieuser']['username']}</td>
												<td>{$vo['quyu']|getQuyuName=###}</td>
												<td>【{$vo['all_yeji1']}】/【{$vo['all_yeji2']}】</td>
												<td>【{$vo['yeji1']}】/【{$vo['yeji2']}】</td>
												<td>{$vo['leavel']|getLeavelName=###}</td>
												<!--<td>{$vo['honor_leavel']|getHonorName=###}</td>-->
												<td>{$vo['reg_time']|getDateFormat=###}</td>
												<td>{$vo['status']|getUserStatusName=###}</td>
												<td>{$vo['lock']|getLockStatus=###}</td>
												<td>
													<div class="btn-group">
														<button class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
															操作 <span class="caret"></span>
														</button>
														<ul class="dropdown-menu">
															<li><a href="{:U('User/update',['username'=>$vo['username']])}">编辑</a></li>
															<li><a href="{:U('User/addUser',['username'=>$vo['username']])}">注册会员</a></li>
															<eq name="vo['activation']" value="1">
															<li><a  onClick="return confirm('确定操作?');" href="{:U('User/activation',['username'=>$vo['username']])}">激活</a></li>
															</eq>
															<li><a href="{:U('UserMoney/moneyInfo',['username'=>$vo['username']])}">用户资金信息</a></li>
															<li><a href="{:U('Finance/financeLog',['username'=>$vo['username']])}">查看详细日志</a></li>
															<li><a href="{:U('Finance/bonusLog',['username'=>$vo['username']])}">查看统计日志</a></li>
															<li><a href="{:U('User/goToHome',['username'=>$vo['username']])}">进入前台</a></li>
														</ul>
													</div>
												</td>
											</tr>
											</volist>
											<tr><td colspan="14">{$list['page']}</td>
											</tr>
										</tbody>
									</table>
								</div>
								<div class="pull-right pagination"></div>
							</div>
						</div>
						<div class="clearfix"></div>
					</div>
				</div>
            <!-- End Example Pagination -->
        </div>
    </div>
</div>
<!-- End Panel Other -->
</div>
<include file="Public:footer" />
<script type="text/javascript">
    function shopUserDel(id){
        layer.confirm('确认删除此商户账号?', {icon: 3, title:'提示'}, function(index){
            //do something
            $.getJSON("{:U('shopUser/delete')}", {'shopID' : id}, function(res){
                if(res.status == true){
                    layer.alert('删除成功');location.reload(); 
                }else{
                    layer.alert('删除失败');
                }
            }); 
            layer.close(index);
        })

    }
</script>
</body>
</html>